package com.puppet.config;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Configuration
public class WorkRabbitMQConfig {

    /*
    * 创建消息队列
    * */
    @Bean
    public Queue workQueue(){
        return new Queue("work.queue");
    }

}
